<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="http://www.wanrenhui.com" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	  <%@include file="/res/include/base-head.jsp"%>
	  <%@include file="/res/include/jquery-easyui.jsp"%>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/push/push.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/area.js"></script>
  </head>
  <body>
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'north',border:false,split:false">
		   <form id="query-form" class="search_form clearfix">
	            <dl>
					<dt>省：</dt>
					 <dd>
	                	<select name="provinceId" id="provinceId" onchange="admin.area.changeProvince()" class="txt grid-8">
	                		<c:forEach var="province" items="${provinceList}">  
                                <option value="${province.id}">${province.name}</option>  
                            </c:forEach>
	                	</select>
	                </dd>
				</dl>
				<dl>
					<dt>市：</dt>
					 <dd>
	                	<select name="cityId" id="cityId" onchange="admin.area.changeCity()" class="txt grid-8">
	                		<option value="">--请选择--</option>
	                	</select>
	                </dd>
				</dl>
				<dl>
					<dt>区：</dt>
					 <dd>
	                	<select name="areaId" id="areaId" onchange="admin.area.changeArea()" class="txt grid-8">
	                		<option value="">--请选择--</option>
	                	</select>
	                </dd>
				</dl>
				<dl>
					<dt>社区：</dt>
					<dd>
						<select name="communityId" id="communityId" class="txt grid-8">
	                		<option value="">--请选择--</option>
	                	</select>
					</dd>
				</dl>
	            <dl>
	            	<dt>创建时间:从</dt>
	                <dd>
		                <input name="startAtStr" id="startAtStr" type="text" class="txt easyui-datetimebox" maxlength="19"/> 到 
		                <input name="endAtStr" id="endAtStr" type="text" class="txt easyui-datetimebox" maxlength="19"/>
	                </dd>
	            </dl>
	            <p class="search_form_btn">
	            	<input type="button" value="搜索" class="icon_serach" onclick="admin.push.query()" />
	            </p>
	            <dl></dl>
	            <p class="search_form_btn">
	            	<input type="button" value="添加推送" class="icon_serach" onclick="admin.push.toPush()" />
	            </p>
	        </form>
	        </div>
		   <div data-options="region:'center',border:false">
			    <table id="datagrid" data-options="url:'${pageContext.request.contextPath}/push/list',toolbar:'#toolbar'">
					<thead>
						<tr>
							<th data-options="field:'msgId',width:150,align:'center' ">推送id</th>
							<th data-options="field:'strNewAt',width:150,align:'center' ">创建时间</th>
							<th data-options="field:'userIds',width:150,align:'center' ">用户id</th>
							<th data-options="field:'title',width:200,align:'left' ">推送标题</th>
							<th data-options="field:'alert',width:250,align:'left' ">通知内容</th>
							<th data-options="field:'message',width:250,align:'left'">推送自定义消息</th>
							<th data-options="field:'pushBizzName',width:150,align:'center' ">推送的业务类型</th>
							<th data-options="field:'communityName',width:100,align:'center' ">社区</th>
						</tr>
					</thead>
				</table>
	  	  </div>
	</div>
  </body>
</html>
